<?php
$tdatacommercial_invoices_eport=array();
	$tdatacommercial_invoices_eport[".NumberOfChars"]=80; 
	$tdatacommercial_invoices_eport[".ShortName"]="commercial_invoices_eport";
	$tdatacommercial_invoices_eport[".OwnerID"]="";
	$tdatacommercial_invoices_eport[".OriginalTable"]="commercial_invoices";


	
//	field labels
$fieldLabelscommercial_invoices_eport = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelscommercial_invoices_eport["English"]=array();
	$fieldToolTipscommercial_invoices_eport["English"]=array();
	$fieldLabelscommercial_invoices_eport["English"]["id"] = "Id";
	$fieldToolTipscommercial_invoices_eport["English"]["id"] = "";
	$fieldLabelscommercial_invoices_eport["English"]["account_id"] = "Account";
	$fieldToolTipscommercial_invoices_eport["English"]["account_id"] = "";
	$fieldLabelscommercial_invoices_eport["English"]["buyer_id"] = "Buyer";
	$fieldToolTipscommercial_invoices_eport["English"]["buyer_id"] = "";
	$fieldLabelscommercial_invoices_eport["English"]["consignee_id"] = "Consignee";
	$fieldToolTipscommercial_invoices_eport["English"]["consignee_id"] = "";
	$fieldLabelscommercial_invoices_eport["English"]["notify_id"] = "Notify";
	$fieldToolTipscommercial_invoices_eport["English"]["notify_id"] = "";
	$fieldLabelscommercial_invoices_eport["English"]["commercial_invoice_no"] = "Invoice No";
	$fieldToolTipscommercial_invoices_eport["English"]["commercial_invoice_no"] = "";
	$fieldLabelscommercial_invoices_eport["English"]["commercial_invoice_date"] = "Invoice Date";
	$fieldToolTipscommercial_invoices_eport["English"]["commercial_invoice_date"] = "";
	$fieldLabelscommercial_invoices_eport["English"]["customer_purchase_order_no"] = "Customer PO No";
	$fieldToolTipscommercial_invoices_eport["English"]["customer_purchase_order_no"] = "";
	$fieldLabelscommercial_invoices_eport["English"]["bl_awb_no"] = "BL/ AWB No";
	$fieldToolTipscommercial_invoices_eport["English"]["bl_awb_no"] = "";
	$fieldLabelscommercial_invoices_eport["English"]["country_id"] = "Country ";
	$fieldToolTipscommercial_invoices_eport["English"]["country_id"] = "";
	$fieldLabelscommercial_invoices_eport["English"]["export_date"] = "Export Date";
	$fieldToolTipscommercial_invoices_eport["English"]["export_date"] = "";
	$fieldLabelscommercial_invoices_eport["English"]["payment_term"] = "Payment Term";
	$fieldToolTipscommercial_invoices_eport["English"]["payment_term"] = "";
	$fieldLabelscommercial_invoices_eport["English"]["export_references"] = "Export References";
	$fieldToolTipscommercial_invoices_eport["English"]["export_references"] = "";
	$fieldLabelscommercial_invoices_eport["English"]["export_route"] = "Export Route";
	$fieldToolTipscommercial_invoices_eport["English"]["export_route"] = "";
	$fieldLabelscommercial_invoices_eport["English"]["package_marks"] = "Package Marks";
	$fieldToolTipscommercial_invoices_eport["English"]["package_marks"] = "";
	$fieldLabelscommercial_invoices_eport["English"]["misc_charges"] = "Misc Charges";
	$fieldToolTipscommercial_invoices_eport["English"]["misc_charges"] = "";
	$fieldLabelscommercial_invoices_eport["English"]["certifications"] = "Certifications";
	$fieldToolTipscommercial_invoices_eport["English"]["certifications"] = "";
	$fieldLabelscommercial_invoices_eport["English"]["account_name"] = "Account Name";
	$fieldToolTipscommercial_invoices_eport["English"]["account_name"] = "";
	$fieldLabelscommercial_invoices_eport["English"]["buyer"] = "Buyer";
	$fieldToolTipscommercial_invoices_eport["English"]["buyer"] = "";
	$fieldLabelscommercial_invoices_eport["English"]["consignee"] = "Consignee";
	$fieldToolTipscommercial_invoices_eport["English"]["consignee"] = "";
	$fieldLabelscommercial_invoices_eport["English"]["notify"] = "Notify";
	$fieldToolTipscommercial_invoices_eport["English"]["notify"] = "";
	$fieldLabelscommercial_invoices_eport["English"]["proforma_invoice_id"] = "Proforma Invoice Id";
	$fieldToolTipscommercial_invoices_eport["English"]["proforma_invoice_id"] = "";
	if (count($fieldToolTipscommercial_invoices_eport["English"])){
		$tdatacommercial_invoices_eport[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Hong Kong S.A.R.)")
{
	$fieldLabelscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldToolTipscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldLabelscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["id"] = "Id";
	$fieldToolTipscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["id"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["account_id"] = "Account Id";
	$fieldToolTipscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["account_id"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["buyer_id"] = "Buyer Id";
	$fieldToolTipscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["buyer_id"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["consignee_id"] = "Consignee Id";
	$fieldToolTipscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["consignee_id"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["notify_id"] = "Notify Id";
	$fieldToolTipscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["notify_id"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["commercial_invoice_no"] = "Commercial Invoice No";
	$fieldToolTipscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["commercial_invoice_no"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["commercial_invoice_date"] = "Commercial Invoice Date";
	$fieldToolTipscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["commercial_invoice_date"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["customer_purchase_order_no"] = "Customer Purchase Order No";
	$fieldToolTipscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["customer_purchase_order_no"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["bl_awb_no"] = "BL / AWB No";
	$fieldToolTipscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["bl_awb_no"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["country_id"] = "Country";
	$fieldToolTipscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["country_id"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["export_date"] = "Export Date";
	$fieldToolTipscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["export_date"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["payment_term"] = "Payment Term";
	$fieldToolTipscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["payment_term"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["export_references"] = "Export References";
	$fieldToolTipscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["export_references"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["export_route"] = "Export Route";
	$fieldToolTipscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["export_route"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["package_marks"] = "Package Marks";
	$fieldToolTipscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["package_marks"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["misc_charges"] = "Misc Charges";
	$fieldToolTipscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["misc_charges"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["certifications"] = "Certifications";
	$fieldToolTipscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["certifications"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["account_name"] = "Account Name";
	$fieldToolTipscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["account_name"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["buyer"] = "Buyer";
	$fieldToolTipscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["buyer"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["consignee"] = "Consignee";
	$fieldToolTipscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["consignee"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["notify"] = "Notify";
	$fieldToolTipscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["notify"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["proforma_invoice_id"] = "Proforma Invoice Id";
	$fieldToolTipscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"]["proforma_invoice_id"] = "";
	if (count($fieldToolTipscommercial_invoices_eport["Chinese (Hong Kong S.A.R.)"])){
		$tdatacommercial_invoices_eport[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Taiwan)")
{
	$fieldLabelscommercial_invoices_eport["Chinese (Taiwan)"]=array();
	$fieldToolTipscommercial_invoices_eport["Chinese (Taiwan)"]=array();
	$fieldLabelscommercial_invoices_eport["Chinese (Taiwan)"]["id"] = "Id";
	$fieldToolTipscommercial_invoices_eport["Chinese (Taiwan)"]["id"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Taiwan)"]["account_id"] = "Account Id";
	$fieldToolTipscommercial_invoices_eport["Chinese (Taiwan)"]["account_id"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Taiwan)"]["buyer_id"] = "Buyer Id";
	$fieldToolTipscommercial_invoices_eport["Chinese (Taiwan)"]["buyer_id"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Taiwan)"]["consignee_id"] = "Consignee Id";
	$fieldToolTipscommercial_invoices_eport["Chinese (Taiwan)"]["consignee_id"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Taiwan)"]["notify_id"] = "Notify Id";
	$fieldToolTipscommercial_invoices_eport["Chinese (Taiwan)"]["notify_id"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Taiwan)"]["commercial_invoice_no"] = "Invoice No";
	$fieldToolTipscommercial_invoices_eport["Chinese (Taiwan)"]["commercial_invoice_no"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Taiwan)"]["commercial_invoice_date"] = "Invoice Date";
	$fieldToolTipscommercial_invoices_eport["Chinese (Taiwan)"]["commercial_invoice_date"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Taiwan)"]["customer_purchase_order_no"] = "Customer PO No";
	$fieldToolTipscommercial_invoices_eport["Chinese (Taiwan)"]["customer_purchase_order_no"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Taiwan)"]["bl_awb_no"] = "Bl Awb No";
	$fieldToolTipscommercial_invoices_eport["Chinese (Taiwan)"]["bl_awb_no"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Taiwan)"]["country_id"] = "Country Id";
	$fieldToolTipscommercial_invoices_eport["Chinese (Taiwan)"]["country_id"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Taiwan)"]["export_date"] = "Export Date";
	$fieldToolTipscommercial_invoices_eport["Chinese (Taiwan)"]["export_date"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Taiwan)"]["payment_term"] = "Payment Term";
	$fieldToolTipscommercial_invoices_eport["Chinese (Taiwan)"]["payment_term"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Taiwan)"]["export_references"] = "Export References";
	$fieldToolTipscommercial_invoices_eport["Chinese (Taiwan)"]["export_references"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Taiwan)"]["export_route"] = "Export Route";
	$fieldToolTipscommercial_invoices_eport["Chinese (Taiwan)"]["export_route"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Taiwan)"]["package_marks"] = "Package Marks";
	$fieldToolTipscommercial_invoices_eport["Chinese (Taiwan)"]["package_marks"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Taiwan)"]["misc_charges"] = "Misc Charges";
	$fieldToolTipscommercial_invoices_eport["Chinese (Taiwan)"]["misc_charges"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Taiwan)"]["certifications"] = "Certifications";
	$fieldToolTipscommercial_invoices_eport["Chinese (Taiwan)"]["certifications"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Taiwan)"]["account_name"] = "Account Name";
	$fieldToolTipscommercial_invoices_eport["Chinese (Taiwan)"]["account_name"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Taiwan)"]["buyer"] = "Buyer";
	$fieldToolTipscommercial_invoices_eport["Chinese (Taiwan)"]["buyer"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Taiwan)"]["consignee"] = "Consignee";
	$fieldToolTipscommercial_invoices_eport["Chinese (Taiwan)"]["consignee"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Taiwan)"]["notify"] = "Notify";
	$fieldToolTipscommercial_invoices_eport["Chinese (Taiwan)"]["notify"] = "";
	$fieldLabelscommercial_invoices_eport["Chinese (Taiwan)"]["proforma_invoice_id"] = "Proforma Invoice Id";
	$fieldToolTipscommercial_invoices_eport["Chinese (Taiwan)"]["proforma_invoice_id"] = "";
	if (count($fieldToolTipscommercial_invoices_eport["Chinese (Taiwan)"])){
		$tdatacommercial_invoices_eport[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="French")
{
	$fieldLabelscommercial_invoices_eport["French"]=array();
	$fieldToolTipscommercial_invoices_eport["French"]=array();
	$fieldLabelscommercial_invoices_eport["French"]["id"] = "Id";
	$fieldToolTipscommercial_invoices_eport["French"]["id"] = "";
	$fieldLabelscommercial_invoices_eport["French"]["account_id"] = "Account Id";
	$fieldToolTipscommercial_invoices_eport["French"]["account_id"] = "";
	$fieldLabelscommercial_invoices_eport["French"]["buyer_id"] = "Buyer Id";
	$fieldToolTipscommercial_invoices_eport["French"]["buyer_id"] = "";
	$fieldLabelscommercial_invoices_eport["French"]["consignee_id"] = "Consignee Id";
	$fieldToolTipscommercial_invoices_eport["French"]["consignee_id"] = "";
	$fieldLabelscommercial_invoices_eport["French"]["notify_id"] = "Notify Id";
	$fieldToolTipscommercial_invoices_eport["French"]["notify_id"] = "";
	$fieldLabelscommercial_invoices_eport["French"]["commercial_invoice_no"] = "Commercial Invoice No";
	$fieldToolTipscommercial_invoices_eport["French"]["commercial_invoice_no"] = "";
	$fieldLabelscommercial_invoices_eport["French"]["commercial_invoice_date"] = "Commercial Invoice Date";
	$fieldToolTipscommercial_invoices_eport["French"]["commercial_invoice_date"] = "";
	$fieldLabelscommercial_invoices_eport["French"]["customer_purchase_order_no"] = "Customer Purchase Order No";
	$fieldToolTipscommercial_invoices_eport["French"]["customer_purchase_order_no"] = "";
	$fieldLabelscommercial_invoices_eport["French"]["bl_awb_no"] = "Bl Awb No";
	$fieldToolTipscommercial_invoices_eport["French"]["bl_awb_no"] = "";
	$fieldLabelscommercial_invoices_eport["French"]["country_id"] = "Country Id";
	$fieldToolTipscommercial_invoices_eport["French"]["country_id"] = "";
	$fieldLabelscommercial_invoices_eport["French"]["export_date"] = "Export Date";
	$fieldToolTipscommercial_invoices_eport["French"]["export_date"] = "";
	$fieldLabelscommercial_invoices_eport["French"]["payment_term"] = "Payment Term";
	$fieldToolTipscommercial_invoices_eport["French"]["payment_term"] = "";
	$fieldLabelscommercial_invoices_eport["French"]["export_references"] = "Export References";
	$fieldToolTipscommercial_invoices_eport["French"]["export_references"] = "";
	$fieldLabelscommercial_invoices_eport["French"]["export_route"] = "Export Route";
	$fieldToolTipscommercial_invoices_eport["French"]["export_route"] = "";
	$fieldLabelscommercial_invoices_eport["French"]["package_marks"] = "Package Marks";
	$fieldToolTipscommercial_invoices_eport["French"]["package_marks"] = "";
	$fieldLabelscommercial_invoices_eport["French"]["misc_charges"] = "Misc Charges";
	$fieldToolTipscommercial_invoices_eport["French"]["misc_charges"] = "";
	$fieldLabelscommercial_invoices_eport["French"]["certifications"] = "Certifications";
	$fieldToolTipscommercial_invoices_eport["French"]["certifications"] = "";
	$fieldLabelscommercial_invoices_eport["French"]["account_name"] = "Account Name";
	$fieldToolTipscommercial_invoices_eport["French"]["account_name"] = "";
	$fieldLabelscommercial_invoices_eport["French"]["buyer"] = "Buyer";
	$fieldToolTipscommercial_invoices_eport["French"]["buyer"] = "";
	$fieldLabelscommercial_invoices_eport["French"]["consignee"] = "Consignee";
	$fieldToolTipscommercial_invoices_eport["French"]["consignee"] = "";
	$fieldLabelscommercial_invoices_eport["French"]["notify"] = "Notify";
	$fieldToolTipscommercial_invoices_eport["French"]["notify"] = "";
	$fieldLabelscommercial_invoices_eport["French"]["proforma_invoice_id"] = "Proforma Invoice Id";
	$fieldToolTipscommercial_invoices_eport["French"]["proforma_invoice_id"] = "";
	if (count($fieldToolTipscommercial_invoices_eport["French"])){
		$tdatacommercial_invoices_eport[".isUseToolTips"]=true;
	}
}


	
	$tdatacommercial_invoices_eport[".NCSearch"]=true;

	

$tdatacommercial_invoices_eport[".shortTableName"] = "commercial_invoices_eport";
$tdatacommercial_invoices_eport[".nSecOptions"] = 0;
$tdatacommercial_invoices_eport[".recsPerRowList"] = 1;	
$tdatacommercial_invoices_eport[".tableGroupBy"] = "0";
$tdatacommercial_invoices_eport[".mainTableOwnerID"] = "";
$tdatacommercial_invoices_eport[".moveNext"] = 1;




$tdatacommercial_invoices_eport[".showAddInPopup"] = false;

$tdatacommercial_invoices_eport[".showEditInPopup"] = false;

$tdatacommercial_invoices_eport[".showViewInPopup"] = false;


$tdatacommercial_invoices_eport[".fieldsForRegister"] = array();

$tdatacommercial_invoices_eport[".listAjax"] = false;

	$tdatacommercial_invoices_eport[".audit"] = false;

	$tdatacommercial_invoices_eport[".locking"] = false;
	
$tdatacommercial_invoices_eport[".listIcons"] = true;
$tdatacommercial_invoices_eport[".edit"] = true;
$tdatacommercial_invoices_eport[".inlineEdit"] = true;
$tdatacommercial_invoices_eport[".view"] = true;

$tdatacommercial_invoices_eport[".exportTo"] = true;

$tdatacommercial_invoices_eport[".printFriendly"] = true;

$tdatacommercial_invoices_eport[".delete"] = true;

$tdatacommercial_invoices_eport[".showSimpleSearchOptions"] = false;

$tdatacommercial_invoices_eport[".showSearchPanel"] = true;


$tdatacommercial_invoices_eport[".isUseAjaxSuggest"] = true;



// button handlers file names

$tdatacommercial_invoices_eport[".addPageEvents"] = false;

$tdatacommercial_invoices_eport[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatacommercial_invoices_eport[".isUseCalendarForSearch"] = true;

// use timepicker for search panel
$tdatacommercial_invoices_eport[".isUseTimeForSearch"] = false;

$tdatacommercial_invoices_eport[".isUseiBox"] = false;



$tdatacommercial_invoices_eport[".isUseInlineJs"] = $tdatacommercial_invoices_eport[".isUseInlineAdd"] || $tdatacommercial_invoices_eport[".isUseInlineEdit"];

$tdatacommercial_invoices_eport[".allSearchFields"] = array();

$tdatacommercial_invoices_eport[".globSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatacommercial_invoices_eport[".allSearchFields"]))
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "id";	
}
$tdatacommercial_invoices_eport[".globSearchFields"][] = "account_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("account_id", $tdatacommercial_invoices_eport[".allSearchFields"]))
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "account_id";	
}
$tdatacommercial_invoices_eport[".globSearchFields"][] = "buyer_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("buyer_id", $tdatacommercial_invoices_eport[".allSearchFields"]))
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "buyer_id";	
}
$tdatacommercial_invoices_eport[".globSearchFields"][] = "consignee_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("consignee_id", $tdatacommercial_invoices_eport[".allSearchFields"]))
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "consignee_id";	
}
$tdatacommercial_invoices_eport[".globSearchFields"][] = "notify_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("notify_id", $tdatacommercial_invoices_eport[".allSearchFields"]))
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "notify_id";	
}
$tdatacommercial_invoices_eport[".globSearchFields"][] = "commercial_invoice_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("commercial_invoice_no", $tdatacommercial_invoices_eport[".allSearchFields"]))
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "commercial_invoice_no";	
}
$tdatacommercial_invoices_eport[".globSearchFields"][] = "commercial_invoice_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("commercial_invoice_date", $tdatacommercial_invoices_eport[".allSearchFields"]))
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "commercial_invoice_date";	
}
$tdatacommercial_invoices_eport[".globSearchFields"][] = "customer_purchase_order_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("customer_purchase_order_no", $tdatacommercial_invoices_eport[".allSearchFields"]))
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "customer_purchase_order_no";	
}
$tdatacommercial_invoices_eport[".globSearchFields"][] = "bl_awb_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("bl_awb_no", $tdatacommercial_invoices_eport[".allSearchFields"]))
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "bl_awb_no";	
}
$tdatacommercial_invoices_eport[".globSearchFields"][] = "country_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("country_id", $tdatacommercial_invoices_eport[".allSearchFields"]))
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "country_id";	
}
$tdatacommercial_invoices_eport[".globSearchFields"][] = "export_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("export_date", $tdatacommercial_invoices_eport[".allSearchFields"]))
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "export_date";	
}
$tdatacommercial_invoices_eport[".globSearchFields"][] = "payment_term";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("payment_term", $tdatacommercial_invoices_eport[".allSearchFields"]))
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "payment_term";	
}
$tdatacommercial_invoices_eport[".globSearchFields"][] = "export_references";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("export_references", $tdatacommercial_invoices_eport[".allSearchFields"]))
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "export_references";	
}
$tdatacommercial_invoices_eport[".globSearchFields"][] = "export_route";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("export_route", $tdatacommercial_invoices_eport[".allSearchFields"]))
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "export_route";	
}
$tdatacommercial_invoices_eport[".globSearchFields"][] = "package_marks";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("package_marks", $tdatacommercial_invoices_eport[".allSearchFields"]))
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "package_marks";	
}
$tdatacommercial_invoices_eport[".globSearchFields"][] = "misc_charges";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("misc_charges", $tdatacommercial_invoices_eport[".allSearchFields"]))
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "misc_charges";	
}
$tdatacommercial_invoices_eport[".globSearchFields"][] = "certifications";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("certifications", $tdatacommercial_invoices_eport[".allSearchFields"]))
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "certifications";	
}
$tdatacommercial_invoices_eport[".globSearchFields"][] = "proforma_invoice_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("proforma_invoice_id", $tdatacommercial_invoices_eport[".allSearchFields"]))
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "proforma_invoice_id";	
}


$tdatacommercial_invoices_eport[".googleLikeFields"][] = "id";
$tdatacommercial_invoices_eport[".googleLikeFields"][] = "account_id";
$tdatacommercial_invoices_eport[".googleLikeFields"][] = "buyer_id";
$tdatacommercial_invoices_eport[".googleLikeFields"][] = "consignee_id";
$tdatacommercial_invoices_eport[".googleLikeFields"][] = "notify_id";
$tdatacommercial_invoices_eport[".googleLikeFields"][] = "commercial_invoice_no";
$tdatacommercial_invoices_eport[".googleLikeFields"][] = "commercial_invoice_date";
$tdatacommercial_invoices_eport[".googleLikeFields"][] = "customer_purchase_order_no";
$tdatacommercial_invoices_eport[".googleLikeFields"][] = "bl_awb_no";
$tdatacommercial_invoices_eport[".googleLikeFields"][] = "country_id";
$tdatacommercial_invoices_eport[".googleLikeFields"][] = "export_date";
$tdatacommercial_invoices_eport[".googleLikeFields"][] = "payment_term";
$tdatacommercial_invoices_eport[".googleLikeFields"][] = "export_references";
$tdatacommercial_invoices_eport[".googleLikeFields"][] = "export_route";
$tdatacommercial_invoices_eport[".googleLikeFields"][] = "package_marks";
$tdatacommercial_invoices_eport[".googleLikeFields"][] = "misc_charges";
$tdatacommercial_invoices_eport[".googleLikeFields"][] = "certifications";
$tdatacommercial_invoices_eport[".googleLikeFields"][] = "proforma_invoice_id";



$tdatacommercial_invoices_eport[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatacommercial_invoices_eport[".allSearchFields"])) 
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "id";	
}
$tdatacommercial_invoices_eport[".advSearchFields"][] = "account_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("account_id", $tdatacommercial_invoices_eport[".allSearchFields"])) 
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "account_id";	
}
$tdatacommercial_invoices_eport[".advSearchFields"][] = "buyer_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("buyer_id", $tdatacommercial_invoices_eport[".allSearchFields"])) 
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "buyer_id";	
}
$tdatacommercial_invoices_eport[".advSearchFields"][] = "consignee_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("consignee_id", $tdatacommercial_invoices_eport[".allSearchFields"])) 
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "consignee_id";	
}
$tdatacommercial_invoices_eport[".advSearchFields"][] = "notify_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("notify_id", $tdatacommercial_invoices_eport[".allSearchFields"])) 
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "notify_id";	
}
$tdatacommercial_invoices_eport[".advSearchFields"][] = "commercial_invoice_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("commercial_invoice_no", $tdatacommercial_invoices_eport[".allSearchFields"])) 
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "commercial_invoice_no";	
}
$tdatacommercial_invoices_eport[".advSearchFields"][] = "commercial_invoice_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("commercial_invoice_date", $tdatacommercial_invoices_eport[".allSearchFields"])) 
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "commercial_invoice_date";	
}
$tdatacommercial_invoices_eport[".advSearchFields"][] = "customer_purchase_order_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("customer_purchase_order_no", $tdatacommercial_invoices_eport[".allSearchFields"])) 
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "customer_purchase_order_no";	
}
$tdatacommercial_invoices_eport[".advSearchFields"][] = "bl_awb_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("bl_awb_no", $tdatacommercial_invoices_eport[".allSearchFields"])) 
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "bl_awb_no";	
}
$tdatacommercial_invoices_eport[".advSearchFields"][] = "country_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("country_id", $tdatacommercial_invoices_eport[".allSearchFields"])) 
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "country_id";	
}
$tdatacommercial_invoices_eport[".advSearchFields"][] = "export_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("export_date", $tdatacommercial_invoices_eport[".allSearchFields"])) 
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "export_date";	
}
$tdatacommercial_invoices_eport[".advSearchFields"][] = "payment_term";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("payment_term", $tdatacommercial_invoices_eport[".allSearchFields"])) 
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "payment_term";	
}
$tdatacommercial_invoices_eport[".advSearchFields"][] = "export_references";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("export_references", $tdatacommercial_invoices_eport[".allSearchFields"])) 
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "export_references";	
}
$tdatacommercial_invoices_eport[".advSearchFields"][] = "export_route";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("export_route", $tdatacommercial_invoices_eport[".allSearchFields"])) 
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "export_route";	
}
$tdatacommercial_invoices_eport[".advSearchFields"][] = "package_marks";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("package_marks", $tdatacommercial_invoices_eport[".allSearchFields"])) 
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "package_marks";	
}
$tdatacommercial_invoices_eport[".advSearchFields"][] = "misc_charges";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("misc_charges", $tdatacommercial_invoices_eport[".allSearchFields"])) 
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "misc_charges";	
}
$tdatacommercial_invoices_eport[".advSearchFields"][] = "certifications";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("certifications", $tdatacommercial_invoices_eport[".allSearchFields"])) 
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "certifications";	
}
$tdatacommercial_invoices_eport[".advSearchFields"][] = "proforma_invoice_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("proforma_invoice_id", $tdatacommercial_invoices_eport[".allSearchFields"])) 
{
	$tdatacommercial_invoices_eport[".allSearchFields"][] = "proforma_invoice_id";	
}

$tdatacommercial_invoices_eport[".isTableType"] = "report";


	

$tdatacommercial_invoices_eport[".isDisplayLoading"] = true;

$tdatacommercial_invoices_eport[".isResizeColumns"] = false;






$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatacommercial_invoices_eport[".strOrderBy"] = $gstrOrderBy;
	
$tdatacommercial_invoices_eport[".orderindexes"] = array();

$tdatacommercial_invoices_eport[".sqlHead"] = "SELECT id,   account_id,   buyer_id,   consignee_id,   notify_id,   commercial_invoice_no,   commercial_invoice_date,   customer_purchase_order_no,   bl_awb_no,   country_id,   export_date,   payment_term,   export_references,   export_route,   package_marks,   misc_charges,   certifications,   proforma_invoice_id";
$tdatacommercial_invoices_eport[".sqlFrom"] = "FROM commercial_invoices";
$tdatacommercial_invoices_eport[".sqlWhereExpr"] = "";
$tdatacommercial_invoices_eport[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatacommercial_invoices_eport[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatacommercial_invoices_eport[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatacommercial_invoices_eport[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_eport["id"]=$fdata;
//	account_id
	$fdata = array();
	$fdata["strName"] = "account_id";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Account"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "account_id";
	
		$fdata["FullName"]= "account_id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_eport["account_id"]=$fdata;
//	buyer_id
	$fdata = array();
	$fdata["strName"] = "buyer_id";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Buyer"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "buyer_id";
	
		$fdata["FullName"]= "buyer_id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 3;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_eport["buyer_id"]=$fdata;
//	consignee_id
	$fdata = array();
	$fdata["strName"] = "consignee_id";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Consignee"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "consignee_id";
	
		$fdata["FullName"]= "consignee_id";
	
		
		
		
		
		
				$fdata["Index"]= 4;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_eport["consignee_id"]=$fdata;
//	notify_id
	$fdata = array();
	$fdata["strName"] = "notify_id";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Notify"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "notify_id";
	
		$fdata["FullName"]= "notify_id";
	
		
		
		
		
		
				$fdata["Index"]= 5;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_eport["notify_id"]=$fdata;
//	commercial_invoice_no
	$fdata = array();
	$fdata["strName"] = "commercial_invoice_no";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Invoice No"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "commercial_invoice_no";
	
		$fdata["FullName"]= "commercial_invoice_no";
	
		
		
		
		
		
				$fdata["Index"]= 6;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_eport["commercial_invoice_no"]=$fdata;
//	commercial_invoice_date
	$fdata = array();
	$fdata["strName"] = "commercial_invoice_date";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Invoice Date"; 
	
		
		
	$fdata["FieldType"]= 7;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Short Date";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "commercial_invoice_date";
	
		$fdata["FullName"]= "commercial_invoice_date";
	
		
		
		
		
		
				$fdata["Index"]= 7;
		$fdata["DateEditType"] = 13; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_eport["commercial_invoice_date"]=$fdata;
//	customer_purchase_order_no
	$fdata = array();
	$fdata["strName"] = "customer_purchase_order_no";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Customer PO No"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "customer_purchase_order_no";
	
		$fdata["FullName"]= "customer_purchase_order_no";
	
		
		
		
		
		
				$fdata["Index"]= 8;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_eport["customer_purchase_order_no"]=$fdata;
//	bl_awb_no
	$fdata = array();
	$fdata["strName"] = "bl_awb_no";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="BL/ AWB No"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "bl_awb_no";
	
		$fdata["FullName"]= "bl_awb_no";
	
		
		
		
		
		
				$fdata["Index"]= 9;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_eport["bl_awb_no"]=$fdata;
//	country_id
	$fdata = array();
	$fdata["strName"] = "country_id";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Country "; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "country_id";
	
		$fdata["FullName"]= "country_id";
	
		
		
		
		
		
				$fdata["Index"]= 10;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_eport["country_id"]=$fdata;
//	export_date
	$fdata = array();
	$fdata["strName"] = "export_date";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Export Date"; 
	
		
		
	$fdata["FieldType"]= 7;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Short Date";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "export_date";
	
		$fdata["FullName"]= "export_date";
	
		
		
		
		
		
				$fdata["Index"]= 11;
		$fdata["DateEditType"] = 13; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_eport["export_date"]=$fdata;
//	payment_term
	$fdata = array();
	$fdata["strName"] = "payment_term";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Payment Term"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "payment_term";
	
		$fdata["FullName"]= "payment_term";
	
		
		
		
		
		
				$fdata["Index"]= 12;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_eport["payment_term"]=$fdata;
//	export_references
	$fdata = array();
	$fdata["strName"] = "export_references";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Export References"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "export_references";
	
		$fdata["FullName"]= "export_references";
	
		
		
		
		
		
				$fdata["Index"]= 13;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=1000";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_eport["export_references"]=$fdata;
//	export_route
	$fdata = array();
	$fdata["strName"] = "export_route";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Export Route"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "export_route";
	
		$fdata["FullName"]= "export_route";
	
		
		
		
		
		
				$fdata["Index"]= 14;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_eport["export_route"]=$fdata;
//	package_marks
	$fdata = array();
	$fdata["strName"] = "package_marks";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Package Marks"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "package_marks";
	
		$fdata["FullName"]= "package_marks";
	
		
		
		
		
		
				$fdata["Index"]= 15;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_eport["package_marks"]=$fdata;
//	misc_charges
	$fdata = array();
	$fdata["strName"] = "misc_charges";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Misc Charges"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "misc_charges";
	
		$fdata["FullName"]= "misc_charges";
	
		
		
		
		
		
				$fdata["Index"]= 16;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_eport["misc_charges"]=$fdata;
//	certifications
	$fdata = array();
	$fdata["strName"] = "certifications";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Certifications"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "certifications";
	
		$fdata["FullName"]= "certifications";
	
		
		
		
		
		
				$fdata["Index"]= 17;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatacommercial_invoices_eport["certifications"]=$fdata;
//	proforma_invoice_id
	$fdata = array();
	$fdata["strName"] = "proforma_invoice_id";
	$fdata["ownerTable"] = "commercial_invoices";
		$fdata["Label"]="Proforma Invoice Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "proforma_invoice_id";
	
		$fdata["FullName"]= "proforma_invoice_id";
	
		
		
		
		
		
				$fdata["Index"]= 18;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				
		
		
		
		
		
			$tdatacommercial_invoices_eport["proforma_invoice_id"]=$fdata;

	
$tables_data["commercial_invoices_eport"]=&$tdatacommercial_invoices_eport;
$field_labels["commercial_invoices_eport"] = &$fieldLabelscommercial_invoices_eport;
$fieldToolTips["commercial_invoices_eport"] = &$fieldToolTipscommercial_invoices_eport;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["commercial_invoices_eport"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["commercial_invoices_eport"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto182=array();
$proto182["m_strHead"] = "SELECT";
$proto182["m_strFieldList"] = "id,   account_id,   buyer_id,   consignee_id,   notify_id,   commercial_invoice_no,   commercial_invoice_date,   customer_purchase_order_no,   bl_awb_no,   country_id,   export_date,   payment_term,   export_references,   export_route,   package_marks,   misc_charges,   certifications,   proforma_invoice_id";
$proto182["m_strFrom"] = "FROM commercial_invoices";
$proto182["m_strWhere"] = "";
$proto182["m_strOrderBy"] = "";
$proto182["m_strTail"] = "";
$proto183=array();
$proto183["m_sql"] = "";
$proto183["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto183["m_column"]=$obj;
$proto183["m_contained"] = array();
$proto183["m_strCase"] = "";
$proto183["m_havingmode"] = "0";
$proto183["m_inBrackets"] = "0";
$proto183["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto183);

$proto182["m_where"] = $obj;
$proto185=array();
$proto185["m_sql"] = "";
$proto185["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto185["m_column"]=$obj;
$proto185["m_contained"] = array();
$proto185["m_strCase"] = "";
$proto185["m_havingmode"] = "0";
$proto185["m_inBrackets"] = "0";
$proto185["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto185);

$proto182["m_having"] = $obj;
$proto182["m_fieldlist"] = array();
						$proto187=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "commercial_invoices"
));

$proto187["m_expr"]=$obj;
$proto187["m_alias"] = "";
$obj = new SQLFieldListItem($proto187);

$proto182["m_fieldlist"][]=$obj;
						$proto189=array();
			$obj = new SQLField(array(
	"m_strName" => "account_id",
	"m_strTable" => "commercial_invoices"
));

$proto189["m_expr"]=$obj;
$proto189["m_alias"] = "";
$obj = new SQLFieldListItem($proto189);

$proto182["m_fieldlist"][]=$obj;
						$proto191=array();
			$obj = new SQLField(array(
	"m_strName" => "buyer_id",
	"m_strTable" => "commercial_invoices"
));

$proto191["m_expr"]=$obj;
$proto191["m_alias"] = "";
$obj = new SQLFieldListItem($proto191);

$proto182["m_fieldlist"][]=$obj;
						$proto193=array();
			$obj = new SQLField(array(
	"m_strName" => "consignee_id",
	"m_strTable" => "commercial_invoices"
));

$proto193["m_expr"]=$obj;
$proto193["m_alias"] = "";
$obj = new SQLFieldListItem($proto193);

$proto182["m_fieldlist"][]=$obj;
						$proto195=array();
			$obj = new SQLField(array(
	"m_strName" => "notify_id",
	"m_strTable" => "commercial_invoices"
));

$proto195["m_expr"]=$obj;
$proto195["m_alias"] = "";
$obj = new SQLFieldListItem($proto195);

$proto182["m_fieldlist"][]=$obj;
						$proto197=array();
			$obj = new SQLField(array(
	"m_strName" => "commercial_invoice_no",
	"m_strTable" => "commercial_invoices"
));

$proto197["m_expr"]=$obj;
$proto197["m_alias"] = "";
$obj = new SQLFieldListItem($proto197);

$proto182["m_fieldlist"][]=$obj;
						$proto199=array();
			$obj = new SQLField(array(
	"m_strName" => "commercial_invoice_date",
	"m_strTable" => "commercial_invoices"
));

$proto199["m_expr"]=$obj;
$proto199["m_alias"] = "";
$obj = new SQLFieldListItem($proto199);

$proto182["m_fieldlist"][]=$obj;
						$proto201=array();
			$obj = new SQLField(array(
	"m_strName" => "customer_purchase_order_no",
	"m_strTable" => "commercial_invoices"
));

$proto201["m_expr"]=$obj;
$proto201["m_alias"] = "";
$obj = new SQLFieldListItem($proto201);

$proto182["m_fieldlist"][]=$obj;
						$proto203=array();
			$obj = new SQLField(array(
	"m_strName" => "bl_awb_no",
	"m_strTable" => "commercial_invoices"
));

$proto203["m_expr"]=$obj;
$proto203["m_alias"] = "";
$obj = new SQLFieldListItem($proto203);

$proto182["m_fieldlist"][]=$obj;
						$proto205=array();
			$obj = new SQLField(array(
	"m_strName" => "country_id",
	"m_strTable" => "commercial_invoices"
));

$proto205["m_expr"]=$obj;
$proto205["m_alias"] = "";
$obj = new SQLFieldListItem($proto205);

$proto182["m_fieldlist"][]=$obj;
						$proto207=array();
			$obj = new SQLField(array(
	"m_strName" => "export_date",
	"m_strTable" => "commercial_invoices"
));

$proto207["m_expr"]=$obj;
$proto207["m_alias"] = "";
$obj = new SQLFieldListItem($proto207);

$proto182["m_fieldlist"][]=$obj;
						$proto209=array();
			$obj = new SQLField(array(
	"m_strName" => "payment_term",
	"m_strTable" => "commercial_invoices"
));

$proto209["m_expr"]=$obj;
$proto209["m_alias"] = "";
$obj = new SQLFieldListItem($proto209);

$proto182["m_fieldlist"][]=$obj;
						$proto211=array();
			$obj = new SQLField(array(
	"m_strName" => "export_references",
	"m_strTable" => "commercial_invoices"
));

$proto211["m_expr"]=$obj;
$proto211["m_alias"] = "";
$obj = new SQLFieldListItem($proto211);

$proto182["m_fieldlist"][]=$obj;
						$proto213=array();
			$obj = new SQLField(array(
	"m_strName" => "export_route",
	"m_strTable" => "commercial_invoices"
));

$proto213["m_expr"]=$obj;
$proto213["m_alias"] = "";
$obj = new SQLFieldListItem($proto213);

$proto182["m_fieldlist"][]=$obj;
						$proto215=array();
			$obj = new SQLField(array(
	"m_strName" => "package_marks",
	"m_strTable" => "commercial_invoices"
));

$proto215["m_expr"]=$obj;
$proto215["m_alias"] = "";
$obj = new SQLFieldListItem($proto215);

$proto182["m_fieldlist"][]=$obj;
						$proto217=array();
			$obj = new SQLField(array(
	"m_strName" => "misc_charges",
	"m_strTable" => "commercial_invoices"
));

$proto217["m_expr"]=$obj;
$proto217["m_alias"] = "";
$obj = new SQLFieldListItem($proto217);

$proto182["m_fieldlist"][]=$obj;
						$proto219=array();
			$obj = new SQLField(array(
	"m_strName" => "certifications",
	"m_strTable" => "commercial_invoices"
));

$proto219["m_expr"]=$obj;
$proto219["m_alias"] = "";
$obj = new SQLFieldListItem($proto219);

$proto182["m_fieldlist"][]=$obj;
						$proto221=array();
			$obj = new SQLField(array(
	"m_strName" => "proforma_invoice_id",
	"m_strTable" => "commercial_invoices"
));

$proto221["m_expr"]=$obj;
$proto221["m_alias"] = "";
$obj = new SQLFieldListItem($proto221);

$proto182["m_fieldlist"][]=$obj;
$proto182["m_fromlist"] = array();
												$proto223=array();
$proto223["m_link"] = "SQLL_MAIN";
			$proto224=array();
$proto224["m_strName"] = "commercial_invoices";
$proto224["m_columns"] = array();
$proto224["m_columns"][] = "id";
$proto224["m_columns"][] = "account_id";
$proto224["m_columns"][] = "buyer_id";
$proto224["m_columns"][] = "consignee_id";
$proto224["m_columns"][] = "notify_id";
$proto224["m_columns"][] = "commercial_invoice_no";
$proto224["m_columns"][] = "commercial_invoice_date";
$proto224["m_columns"][] = "customer_purchase_order_no";
$proto224["m_columns"][] = "bl_awb_no";
$proto224["m_columns"][] = "country_id";
$proto224["m_columns"][] = "export_date";
$proto224["m_columns"][] = "payment_term";
$proto224["m_columns"][] = "export_references";
$proto224["m_columns"][] = "export_route";
$proto224["m_columns"][] = "package_marks";
$proto224["m_columns"][] = "misc_charges";
$proto224["m_columns"][] = "certifications";
$proto224["m_columns"][] = "proforma_invoice_id";
$obj = new SQLTable($proto224);

$proto223["m_table"] = $obj;
$proto223["m_alias"] = "";
$proto225=array();
$proto225["m_sql"] = "";
$proto225["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto225["m_column"]=$obj;
$proto225["m_contained"] = array();
$proto225["m_strCase"] = "";
$proto225["m_havingmode"] = "0";
$proto225["m_inBrackets"] = "0";
$proto225["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto225);

$proto223["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto223);

$proto182["m_fromlist"][]=$obj;
$proto182["m_groupby"] = array();
$proto182["m_orderby"] = array();
$obj = new SQLQuery($proto182);

$queryData_commercial_invoices_eport = $obj;
$tdatacommercial_invoices_eport[".sqlquery"] = $queryData_commercial_invoices_eport;

$tableEvents["commercial_invoices_eport"] = new eventsBase;

?>
